package io.github.luons.mediator.dsl.view.filter;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * FilterGroup
 *
 * @author : luons
 */
@Data
public class FilterGroup {

    /**
     * filter name
     */
    private String name;

    /**
     * operator：eq/like/in...
     */
    private String operator;

    /**
     * operator values
     */
    private List<Object> values;

    public void values(String value) {
        if (this.values == null) {
            this.values = new ArrayList<>();
        }
        this.values.add(value);
    }

}
